/**
 * AppBundle.as
 * Copyright 2014 Qunhe Tech, all rights reserved.
 * Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
 */
package org.bridge.flash.hi2048
{
    import robotlegs.bender.bundles.mvcs.MVCSBundle;
    import robotlegs.bender.extensions.contextView.ContextViewExtension;
    import robotlegs.bender.extensions.contextView.ContextViewListenerConfig;
    import robotlegs.bender.extensions.contextView.StageSyncExtension;
    import robotlegs.bender.extensions.directCommandMap.DirectCommandMapExtension;
    import robotlegs.bender.extensions.enhancedLogging.InjectableLoggerExtension;
    import robotlegs.bender.extensions.eventCommandMap.EventCommandMapExtension;
    import robotlegs.bender.extensions.eventDispatcher.EventDispatcherExtension;
    import robotlegs.bender.extensions.localEventMap.LocalEventMapExtension;
    import robotlegs.bender.extensions.mediatorMap.MediatorMapExtension;
    import robotlegs.bender.extensions.modularity.ModularityExtension;
    import robotlegs.bender.extensions.viewManager.StageCrawlerExtension;
    import robotlegs.bender.extensions.viewManager.StageObserverExtension;
    import robotlegs.bender.extensions.viewManager.ViewManagerExtension;
    import robotlegs.bender.extensions.viewProcessorMap.ViewProcessorMapExtension;
    import robotlegs.bender.extensions.vigilance.VigilanceExtension;
    import robotlegs.bender.framework.api.IContext;

    /**
     * @author zhangshuai
     */
    public class AppBundle extends MVCSBundle
    {
        override public function extend(context:IContext):void
        {
            context.install(
                VigilanceExtension,
                InjectableLoggerExtension,
                ContextViewExtension,
                EventDispatcherExtension,
                ModularityExtension,
                DirectCommandMapExtension,
                EventCommandMapExtension,
                LocalEventMapExtension,
                ViewManagerExtension,
                StageObserverExtension,
                MediatorMapExtension,
                ViewProcessorMapExtension,
                StageCrawlerExtension,
                StageSyncExtension);

            context.configure(ContextViewListenerConfig);
        }
    }
}
